<div class="container">
	<div class="row">
		<div class="col-sm-8">
			<a class="navbar-brand navbar-title" href="#">Preview End User</a>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-8">
			<div id="message"></div>
                 <?php foreach ( $groups as $row ) {
						$telarray=explode('-',$row->tel_number);
						$faxarray=explode('-',$row->fax);
				?>	
         	<div class="contact-form">
				<div class="row">
					<div class="col-sm-6">
						<label for="con_name">Name :</label> 
							<input name="name" disabled type="text" id="name" value="<?php echo $row->name; ?>"
							class="form-control contact-input" placeholder="Company Name">
							<?php echo form_error('name', '<div class="error">', '</div>'); ?>
                            <input type="hidden" name="company_id" value="<?php echo $row->end_user_id; ?>" />
					</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label for="con_name">Email :</label> 
							<input name="email" disabled type="text" id="email" class="form-control contact-input animate"
							placeholder="Email" value="<?php echo $row->email; ?>" />
							<?php echo form_error('email', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label>Tel Number</label> 
							<input name="tel_number1" disabled size="4" class="numeric  contact-input animate" type="text"
							maxlength="4" value="<?php echo $telarray[0]; ?>" />- 
							<input name="tel_number2" disabled size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo $telarray[1]; ?>" />- 
							<input name="tel_number3" disabled size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo $telarray[2]; ?>" />
							<?php echo form_error('tel_number1', '<div class="error">', '</div>'); ?>
							<?php echo form_error('tel_number2', '<div class="error">', '</div>'); ?>
							<?php echo form_error('tel_number3', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label>Fax Number</label> 
							<input name="fax1" disabled size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo $faxarray[0]; ?>" />- 
							<input name="fax2" disabled size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo $faxarray[1]; ?>" />-
							<input name="fax3" disabled size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo $faxarray[2]; ?>" />
         					<?php echo form_error('fax1', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('fax2', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('fax3', '<div class="error">', '</div>'); ?>
  					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<label for="con_name">Address :</label>
							<textarea id="address" disabled rows="10" placeholder="Address" class="form-control contact-textarea" 
							name="address"><?php echo $row->address; ?></textarea>
							<?php echo form_error('address', '<div class="error">', '</div>'); ?>
	  				</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<label for="con_name">Province : 
							<input type="text" id="province" name="province" class="form-control contact-input animate"
							disabled value="<?php echo $row->PROVINCE_NAME; ?>" />
						</label> 
						<label for="con_name">District: 
							<input type="text" id="district" name="district" class="form-control contact-input animate"
							disabled value="<?php echo $row->district_NAME; ?>" />
						</label>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label for="con_name">Company match :</label> 
							<input name="com_name" disabled type="text" class="form-control contact-input animate" 
							id="com_name" value="<?php echo $row->com_name; ?>">
					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<label for="con_name">Note Comment :</label>
							<textarea id="note_comment" disabled rows="10" placeholder="note_comment" class="form-control contact-textarea"
							name="note_comment"><?php echo $row->note_comment; ?></textarea>
					</div>
				</div>
                     <?php } ?>
            	<div class="row">
					<div class="col-sm-12">
						<div class="pull-left clearfix">
							<button type="button" id="submit" class="submit-btn active-btn" onclick="history.go(-1);">Back</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="col-sm-4"></div>
	</div>
</div>
